import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
const path = require('path')
// https://vitejs.dev/config/
export default defineConfig({
  plugins: [
    vue()
  ],
  resolve: {
    alias: {
      '@': path.resolve(__dirname, './src')
    }
  },
  server: {
    proxy: {
      "/system": {
        target: 'http://116.62.139.1:8080/system',
        ws: true,
        changeOrigin: true,
        rewrite: (path) => path.replace(/^\/system/, "")
      },
    }
  }
})
